//
//  UserDao.h
//  处理家长业务逻辑相关的类
//
//  Created by 闫珍 on 15/5/20.
//  Copyright (c) 2015年 ci123. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserInfo.h"
#import "DBManager.h"
#import "BabyDao.h"

@interface UserDao : NSObject

+(UserDao*)getInstance;
-(UserInfo*)getUserInfo;
-(NSUInteger)getUserId;
-(NSUInteger)hasLogin;
-(NSString *)getAccessToken;
-(NSUInteger)getTokenExpTime;
-(BOOL)saveUserData:(NSDictionary*)dict;
-(BOOL)updateUserInfo:(NSDictionary *)dict withReload:(BOOL)reload;
-(BabyInfo*)getCurrentBaby;
-(NSArray*)getMyBabies;
-(BOOL)logOut;

@end
